package com.ruoyi.finish.controller;

import java.util.List;

import com.ruoyi.finish.domain.FinishClassInfo;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.ruoyi.finish.service.IapprovalFinishService;


/**
 * 审批完成信息Controller
 * 
 * @author wusihao
 * @date 2023-05-10
 */
@RestController
@RequestMapping("/approvalFinish/approvalFinish")
public class approvalFinishController extends BaseController
{
    @Autowired
    private IapprovalFinishService approvalFinishService;

    /**
     * 查询审批完成信息列表
     */
    @GetMapping("/list")
    public TableDataInfo list(FinishClassInfo finishClassInfo)
    {
        startPage();
        List<FinishClassInfo> list = approvalFinishService.selectapprovalFinishList(finishClassInfo);
        return getDataTable(list);
    }

    /**
     * 查询审批完成详细信息
     */
    @GetMapping("/checkFinishInformation/{id}")
    public AjaxResult checkFinishInformation(@PathVariable Long id)
    {
        startPage();
        FinishClassInfo finishClassInfo = approvalFinishService.checkFinishInformation(id);
        return success(finishClassInfo);
    }
}
